imageware
Class ShortBuffer

java.lang.Object
  extended by imageware.ShortBuffer
All Implemented Interfaces:
Buffer
Direct Known Subclasses:
ShortAccess

public class ShortBuffer
extends java.lang.Object
implements Buffer

Class ShortBuffer.


Field Summary
protected  java.lang.Object[] data
           
protected  int nx
           
protected  int nxy
           
protected  int ny
           
protected  int nz
           
 
Constructor Summary
protected ShortBuffer(byte[][][] array, int mode)
          Constructor of a short buffer from a byte array.
protected ShortBuffer(byte[][] array, int mode)
          Constructor of a short buffer from a byte array.
protected ShortBuffer(byte[] array, int mode)
          Constructor of a short buffer from a byte array.
protected ShortBuffer(double[][][] array, int mode)
          Constructor of a short buffer from a double array.
protected ShortBuffer(double[][] array, int mode)
          Constructor of a short buffer from a double array.
protected ShortBuffer(double[] array, int mode)
          Constructor of a short buffer from a double array.
protected ShortBuffer(float[][][] array, int mode)
          Constructor of a short buffer from a float array.
protected ShortBuffer(float[][] array, int mode)
          Constructor of a short buffer from a float array.
protected ShortBuffer(float[] array, int mode)
          Constructor of a short buffer from a float array.
protected ShortBuffer(java.awt.Image image, int mode)
          Constructor of a short buffer from a object Image of Java.
protected ShortBuffer(ij.ImageStack stack, byte channel)
          Constructor of a short buffer from a specific color channel of ImageStack.
protected ShortBuffer(ij.ImageStack stack, int mode)
          Constructor of a short buffer from a ImageStack.
protected ShortBuffer(int nx, int ny, int nz)
          Constructor of a empty 3D short buffer.
protected ShortBuffer(short[][][] array, int mode)
          Constructor of a short buffer from a short array.
protected ShortBuffer(short[][] array, int mode)
          Constructor of a short buffer from a short array.
protected ShortBuffer(short[] array, int mode)
          Constructor of a short buffer from a short array.
 
Method Summary
 int getDepth()
          Return the size in the Z axis.
 int getDimension()
          Return the number of dimension of this imageware (1, 2 or 3).
 int getHeight()
          Return the size in the Y axis.
 int[] getSize()
          Return the size of the imageware int[0] : x, int[1] : y, int[2] : z.
 int getSizeX()
          Return the size in the X axis.
 int getSizeY()
          Return the size in the Y axis.
 int getSizeZ()
          Return the size in the Z axis.
 byte[] getSliceByte(int z)
          Get a specific slice, fast and direct access, but only for byte imageware.
 double[] getSliceDouble(int z)
          Get a specific slice, fast and direct access, but only for double imageware.
 float[] getSliceFloat(int z)
          Get a specific slice, fast and direct access, but only for float imageware.
 short[] getSliceShort(int z)
          Get a specific slice, fast and direct access, but only for short imageware.
 int getTotalSize()
          Return the number of pixels in the imageware.
 int getType()
          Return the type of this imageware.
 java.lang.String getTypeToString()
          Return the type of this imageware in a string format.
 java.lang.Object[] getVolume()
          Get a reference of the whole volume data.
 int getWidth()
          Return the size in the X axis.
 void getX(int x, int y, int z, byte[] buffer)
          Get an array from the imageware at the position (x,y,z) in X axis.
 void getX(int x, int y, int z, double[] buffer)
          Get an array from the imageware at the position (x,y,z) in X axis.
 void getX(int x, int y, int z, float[] buffer)
          Get an array from the imageware at the position (x,y,z) in X axis.
 void getX(int x, int y, int z, ImageWare buffer)
          Get an array from the imageware at the position (x,y,z) in X axis.
 void getX(int x, int y, int z, short[] buffer)
          Get an array from the imageware at the position (x,y,z) in X axis.
 void getXY(int x, int y, int z, byte[][] buffer)
          get an array into the imageware at the position (x,y,z) in XY axis.
 void getXY(int x, int y, int z, double[][] buffer)
          get an array into the imageware at the position (x,y,z) in XY axis.
 void getXY(int x, int y, int z, float[][] buffer)
          get an array into the imageware at the position (x,y,z) in XY axis.
 void getXY(int x, int y, int z, ImageWare buffer)
          get an array into the imageware at the position (x,y,z) in XY axis.
 void getXY(int x, int y, int z, short[][] buffer)
          get an array into the imageware at the position (x,y,z) in XY axis.
 void getXYZ(int x, int y, int z, byte[][][] buffer)
          Get an array from the imageware at the position (x,y,z) in XYZ axis.
 void getXYZ(int x, int y, int z, double[][][] buffer)
          Get an array from the imageware at the position (x,y,z) in XYZ axis.
 void getXYZ(int x, int y, int z, float[][][] buffer)
          Get an array from the imageware at the position (x,y,z) in XYZ axis.
 void getXYZ(int x, int y, int z, ImageWare buffer)
          Get an array from the imageware at the position (x,y,z) in XYZ axis.
 void getXYZ(int x, int y, int z, short[][][] buffer)
          Get an array from the imageware at the position (x,y,z) in XYZ axis.
 void getXZ(int x, int y, int z, byte[][] buffer)
          Get an array from the imageware at the position (x,y,z) in XZ axis.
 void getXZ(int x, int y, int z, double[][] buffer)
          Get an array from the imageware at the position (x,y,z) in XZ axis.
 void getXZ(int x, int y, int z, float[][] buffer)
          Get an array from the imageware at the position (x,y,z) in XZ axis.
 void getXZ(int x, int y, int z, ImageWare buffer)
          Get an array from the imageware at the position (x,y,z) in XZ axis.
 void getXZ(int x, int y, int z, short[][] buffer)
          Get an array from the imageware at the position (x,y,z) in XZ axis.
 void getY(int x, int y, int z, byte[] buffer)
          Get an array from the imageware at the position (x,y,z) in Y axis.
 void getY(int x, int y, int z, double[] buffer)
          Get an array from the imageware at the position (x,y,z) in Y axis.
 void getY(int x, int y, int z, float[] buffer)
          Get an array from the imageware at the position (x,y,z) in Y axis.
 void getY(int x, int y, int z, ImageWare buffer)
          Get an array from the imageware at the position (x,y,z) in Y axis.
 void getY(int x, int y, int z, short[] buffer)
          Get an array from the imageware at the position (x,y,z) in Y axis.
 void getYZ(int x, int y, int z, byte[][] buffer)
          Get an array from the imageware at the position (x,y,z) in YZ axis.
 void getYZ(int x, int y, int z, double[][] buffer)
          Get an array from the imageware at the position (x,y,z) in YZ axis.
 void getYZ(int x, int y, int z, float[][] buffer)
          Get an array from the imageware at the position (x,y,z) in YZ axis.
 void getYZ(int x, int y, int z, ImageWare buffer)
          Get an array from the imageware at the position (x,y,z) in YZ axis.
 void getYZ(int x, int y, int z, short[][] buffer)
          Get an array from the imageware at the position (x,y,z) in YZ axis.
 void getZ(int x, int y, int z, byte[] buffer)
          Get an array from the imageware at the position (x,y,z) in Z axis.
 void getZ(int x, int y, int z, double[] buffer)
          Get an array from the imageware at the position (x,y,z) in Z axis.
 void getZ(int x, int y, int z, float[] buffer)
          Get an array from the imageware at the position (x,y,z) in Z axis.
 void getZ(int x, int y, int z, ImageWare buffer)
          Get an array from the imageware at the position (x,y,z) in Z axis.
 void getZ(int x, int y, int z, short[] buffer)
          Get an array from the imageware at the position (x,y,z) in Z axis.
 boolean isSameSize(ImageWare imageware)
          Return true is this imageware has the same size the imageware given as parameter.
 void putX(int x, int y, int z, byte[] buffer)
          Put an array into the imageware at the position (x,y,z) in X axis.
 void putX(int x, int y, int z, double[] buffer)
          Put an array into the imageware at the position (x,y,z) in X axis.
 void putX(int x, int y, int z, float[] buffer)
          Put an array into the imageware at the position (x,y,z) in X axis.
 void putX(int x, int y, int z, ImageWare buffer)
          Put an array into the imageware at the position (x,y,z) in X axis.
 void putX(int x, int y, int z, short[] buffer)
          Put an array into the imageware at the position (x,y,z) in X axis.
 void putXY(int x, int y, int z, byte[][] buffer)
          Put an array into the imageware at the position (x,y,z) in XY axis.
 void putXY(int x, int y, int z, double[][] buffer)
          Put an array into the imageware at the position (x,y,z) in XY axis.
 void putXY(int x, int y, int z, float[][] buffer)
          Put an array into the imageware at the position (x,y,z) in XY axis.
 void putXY(int x, int y, int z, ImageWare buffer)
          Put an array into the imageware at the position (x,y,z) in XY axis.
 void putXY(int x, int y, int z, short[][] buffer)
          Put an array into the imageware at the position (x,y,z) in XY axis.
 void putXYZ(int x, int y, int z, byte[][][] buffer)
          Put an array into the imageware at the position (x,y,z) in XYZ axis.
 void putXYZ(int x, int y, int z, double[][][] buffer)
          Put an array into the imageware at the position (x,y,z) in XYZ axis.
 void putXYZ(int x, int y, int z, float[][][] buffer)
          Put an array into the imageware at the position (x,y,z) in XYZ axis.
 void putXYZ(int x, int y, int z, ImageWare buffer)
          Put an array into the imageware at the position (x,y,z) in XYZ axis.
 void putXYZ(int x, int y, int z, short[][][] buffer)
          Put an array into the imageware at the position (x,y,z) in XYZ axis.
 void putXZ(int x, int y, int z, byte[][] buffer)
          Put an array into the imageware at the position (x,y,z) in XZ axis.
 void putXZ(int x, int y, int z, double[][] buffer)
          Put an array into the imageware at the position (x,y,z) in XZ axis.
 void putXZ(int x, int y, int z, float[][] buffer)
          Put an array into the imageware at the position (x,y,z) in XZ axis.
 void putXZ(int x, int y, int z, ImageWare buffer)
          Put an array into the imageware at the position (x,y,z) in XZ axis.
 void putXZ(int x, int y, int z, short[][] buffer)
          Put an array into the imageware at the position (x,y,z) in XZ axis.
 void putY(int x, int y, int z, byte[] buffer)
          Put an array into the imageware at the position (x,y,z) in Y axis.
 void putY(int x, int y, int z, double[] buffer)
          Put an array into the imageware at the position (x,y,z) in Y axis.
 void putY(int x, int y, int z, float[] buffer)
          Put an array into the imageware at the position (x,y,z) in Y axis.
 void putY(int x, int y, int z, ImageWare buffer)
          Put an array into the imageware at the position (x,y,z) in Y axis.
 void putY(int x, int y, int z, short[] buffer)
          Put an array into the imageware at the position (x,y,z) in Y axis.
 void putYZ(int x, int y, int z, byte[][] buffer)
          Put an array into the imageware at the position (x,y,z) in YZ axis.
 void putYZ(int x, int y, int z, double[][] buffer)
          Put an array into the imageware at the position (x,y,z) in YZ axis.
 void putYZ(int x, int y, int z, float[][] buffer)
          Put an array into the imageware at the position (x,y,z) in YZ axis.
 void putYZ(int x, int y, int z, ImageWare buffer)
          Put an array into the imageware at the position (x,y,z) in YZ axis.
 void putYZ(int x, int y, int z, short[][] buffer)
          Put an array into the imageware at the position (x,y,z) in YZ axis.
 void putZ(int x, int y, int z, byte[] buffer)
          Put an array into the imageware at the position (x,y,z) in Z axis.
 void putZ(int x, int y, int z, double[] buffer)
          Put an array into the imageware at the position (x,y,z) in Z axis.
 void putZ(int x, int y, int z, float[] buffer)
          Put an array into the imageware at the position (x,y,z) in Z axis.
 void putZ(int x, int y, int z, ImageWare buffer)
          Put an array into the imageware at the position (x,y,z) in Z axis.
 void putZ(int x, int y, int z, short[] buffer)
          Put an array into the imageware at the position (x,y,z) in Z axis.
protected  void throw_constructor()
          Prepare a complete error message from the errors coming the constructors.
protected  void throw_constructor(int nx, int ny, int nz)
          Prepare a complete error message from the errors coming the constructors.
protected  void throw_get(java.lang.String direction, java.lang.String border, java.lang.Object buffer, int x, int y, int z)
          Prepare a complete error message from the errors coming the get routines.
protected  void throw_put(java.lang.String direction, java.lang.String border, java.lang.Object buffer, int x, int y, int z)
          Prepare a complete error message from the errors coming the put routines.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

protected java.lang.Object[] data

nx

protected int nx

ny

protected int ny

nz

protected int nz

nxy

protected int nxy
Constructor Detail

ShortBuffer

protected ShortBuffer(int nx,
                      int ny,
                      int nz)
Constructor of a empty 3D short buffer.

Parameters:
nx - size of the 3D buffer in the X axis
ny - size of the 3D buffer in the Y axis
ny - size of the 3D buffer in the Z axis

ShortBuffer

protected ShortBuffer(java.awt.Image image,
                      int mode)
Constructor of a short buffer from a object Image of Java.

Parameters:
image - source to build a new imageware

ShortBuffer

protected ShortBuffer(ij.ImageStack stack,
                      int mode)
Constructor of a short buffer from a ImageStack. New data are allocated if the mode is CREATE, the imageware use the data of ImageJ if the mode is WRAP.

Parameters:
stack - source to build a new imageware
mode - WRAP or CREATE

ShortBuffer

protected ShortBuffer(ij.ImageStack stack,
                      byte channel)
Constructor of a short buffer from a specific color channel of ImageStack. New data are always allocated. If it is a gray image the imageware is created and fill up with data of the source ImageStack. If it is a color image only the selected channel is used to create this imageware.

Parameters:
stack - source to build a new imageware
channel - RED, GREEN or BLUE

ShortBuffer

protected ShortBuffer(byte[] array,
                      int mode)
Constructor of a short buffer from a byte array.

Parameters:
array - source to build this new imageware

ShortBuffer

protected ShortBuffer(byte[][] array,
                      int mode)
Constructor of a short buffer from a byte array.

Parameters:
array - source to build this new imageware

ShortBuffer

protected ShortBuffer(byte[][][] array,
                      int mode)
Constructor of a short buffer from a byte array.

Parameters:
array - source to build this new imageware

ShortBuffer

protected ShortBuffer(short[] array,
                      int mode)
Constructor of a short buffer from a short array.

Parameters:
array - source to build this new imageware

ShortBuffer

protected ShortBuffer(short[][] array,
                      int mode)
Constructor of a short buffer from a short array.

Parameters:
array - source to build this new imageware

ShortBuffer

protected ShortBuffer(short[][][] array,
                      int mode)
Constructor of a short buffer from a short array.

Parameters:
array - source to build this new imageware

ShortBuffer

protected ShortBuffer(float[] array,
                      int mode)
Constructor of a short buffer from a float array.

Parameters:
array - source to build this new imageware

ShortBuffer

protected ShortBuffer(float[][] array,
                      int mode)
Constructor of a short buffer from a float array.

Parameters:
array - source to build this new imageware

ShortBuffer

protected ShortBuffer(float[][][] array,
                      int mode)
Constructor of a short buffer from a float array.

Parameters:
array - source to build this new imageware

ShortBuffer

protected ShortBuffer(double[] array,
                      int mode)
Constructor of a short buffer from a double array.

Parameters:
array - source to build this new imageware

ShortBuffer

protected ShortBuffer(double[][] array,
                      int mode)
Constructor of a short buffer from a double array.

Parameters:
array - source to build this new imageware

ShortBuffer

protected ShortBuffer(double[][][] array,
                      int mode)
Constructor of a short buffer from a double array.

Parameters:
array - source to build this new imageware
Method Detail

getType

public int getType()
Return the type of this imageware.

Specified by:
getType in interface Buffer
Returns:
the type of this imageware

getTypeToString

public java.lang.String getTypeToString()
Return the type of this imageware in a string format.

Specified by:
getTypeToString in interface Buffer
Returns:
the type of this imageware translated in a string format

getDimension

public int getDimension()
Return the number of dimension of this imageware (1, 2 or 3).

Specified by:
getDimension in interface Buffer
Returns:
the number of dimension of this imageware

getSize

public int[] getSize()
Return the size of the imageware int[0] : x, int[1] : y, int[2] : z.

Specified by:
getSize in interface Buffer
Returns:
an array given the size of the imageware

getSizeX

public int getSizeX()
Return the size in the X axis.

Specified by:
getSizeX in interface Buffer
Returns:
the size in the X axis

getSizeY

public int getSizeY()
Return the size in the Y axis.

Specified by:
getSizeY in interface Buffer
Returns:
the size in the Y axis

getSizeZ

public int getSizeZ()
Return the size in the Z axis.

Specified by:
getSizeZ in interface Buffer
Returns:
the size in the Z axis

getWidth

public int getWidth()
Return the size in the X axis.

Specified by:
getWidth in interface Buffer
Returns:
the size in the X axis

getHeight

public int getHeight()
Return the size in the Y axis.

Specified by:
getHeight in interface Buffer
Returns:
the size in the Y axis

getDepth

public int getDepth()
Return the size in the Z axis.

Specified by:
getDepth in interface Buffer
Returns:
the size in the Z axis

getTotalSize

public int getTotalSize()
Return the number of pixels in the imageware.

Specified by:
getTotalSize in interface Buffer
Returns:
number of pixels in the imageware

isSameSize

public boolean isSameSize(ImageWare imageware)
Return true is this imageware has the same size the imageware given as parameter.

Specified by:
isSameSize in interface Buffer
Parameters:
imageware - imageware to be compared
Returns:
true if the imageware of the same size than this imageware

putX

public void putX(int x,
                 int y,
                 int z,
                 ImageWare buffer)
Put an array into the imageware at the position (x,y,z) in X axis. No check are performed if the array is outside of the imageware.

Specified by:
putX in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - ImageWare object to put into the imageware

putY

public void putY(int x,
                 int y,
                 int z,
                 ImageWare buffer)
Put an array into the imageware at the position (x,y,z) in Y axis. No check are performed if the array is outside of the imageware.

Specified by:
putY in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - ImageWare object to put into the imageware

putZ

public void putZ(int x,
                 int y,
                 int z,
                 ImageWare buffer)
Put an array into the imageware at the position (x,y,z) in Z axis. No check are performed if the array is outside of the imageware.

Specified by:
putZ in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - ImageWare object to put into the imageware

putXY

public void putXY(int x,
                  int y,
                  int z,
                  ImageWare buffer)
Put an array into the imageware at the position (x,y,z) in XY axis. No check are performed if the array is outside of the imageware.

Specified by:
putXY in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - ImageWare object to put into the imageware

putXZ

public void putXZ(int x,
                  int y,
                  int z,
                  ImageWare buffer)
Put an array into the imageware at the position (x,y,z) in XZ axis. No check are performed if the array is outside of the imageware.

Specified by:
putXZ in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - ImageWare object to put into the imageware

putYZ

public void putYZ(int x,
                  int y,
                  int z,
                  ImageWare buffer)
Put an array into the imageware at the position (x,y,z) in YZ axis. No check are performed if the array is outside of the imageware.

Specified by:
putYZ in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - ImageWare object to put into the imageware

putXYZ

public void putXYZ(int x,
                   int y,
                   int z,
                   ImageWare buffer)
Put an array into the imageware at the position (x,y,z) in XYZ axis. No check are performed if the array is outside of the imageware.

Specified by:
putXYZ in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - ImageWare object to put into the imageware

putX

public void putX(int x,
                 int y,
                 int z,
                 byte[] buffer)
Put an array into the imageware at the position (x,y,z) in X axis. No check are performed if the array is outside of the imageware.

Specified by:
putX in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - byte 1D array to put into the imageware

putX

public void putX(int x,
                 int y,
                 int z,
                 short[] buffer)
Put an array into the imageware at the position (x,y,z) in X axis. No check are performed if the array is outside of the imageware.

Specified by:
putX in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - short 1D array to put into the imageware

putX

public void putX(int x,
                 int y,
                 int z,
                 float[] buffer)
Put an array into the imageware at the position (x,y,z) in X axis. No check are performed if the array is outside of the imageware.

Specified by:
putX in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - float 1D array to put into the imageware

putX

public void putX(int x,
                 int y,
                 int z,
                 double[] buffer)
Put an array into the imageware at the position (x,y,z) in X axis. No check are performed if the array is outside of the imageware.

Specified by:
putX in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - double 1D array to put into the imageware

putY

public void putY(int x,
                 int y,
                 int z,
                 byte[] buffer)
Put an array into the imageware at the position (x,y,z) in Y axis. No check are performed if the array is outside of the imageware.

Specified by:
putY in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - byte 1D array to put into the imageware

putY

public void putY(int x,
                 int y,
                 int z,
                 short[] buffer)
Put an array into the imageware at the position (x,y,z) in Y axis. No check are performed if the array is outside of the imageware.

Specified by:
putY in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - short 1D array to put into the imageware

putY

public void putY(int x,
                 int y,
                 int z,
                 float[] buffer)
Put an array into the imageware at the position (x,y,z) in Y axis. No check are performed if the array is outside of the imageware.

Specified by:
putY in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - float 1D array to put into the imageware

putY

public void putY(int x,
                 int y,
                 int z,
                 double[] buffer)
Put an array into the imageware at the position (x,y,z) in Y axis. No check are performed if the array is outside of the imageware.

Specified by:
putY in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - double 1D array to put into the imageware

putZ

public void putZ(int x,
                 int y,
                 int z,
                 byte[] buffer)
Put an array into the imageware at the position (x,y,z) in Z axis. No check are performed if the array is outside of the imageware.

Specified by:
putZ in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - bybytete 1D array to put into the imageware

putZ

public void putZ(int x,
                 int y,
                 int z,
                 short[] buffer)
Put an array into the imageware at the position (x,y,z) in Z axis. No check are performed if the array is outside of the imageware.

Specified by:
putZ in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - byshortte 1D array to put into the imageware

putZ

public void putZ(int x,
                 int y,
                 int z,
                 float[] buffer)
Put an array into the imageware at the position (x,y,z) in Z axis. No check are performed if the array is outside of the imageware.

Specified by:
putZ in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - byfloatte 1D array to put into the imageware

putZ

public void putZ(int x,
                 int y,
                 int z,
                 double[] buffer)
Put an array into the imageware at the position (x,y,z) in Z axis. No check are performed if the array is outside of the imageware.

Specified by:
putZ in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - bydoublete 1D array to put into the imageware

putXY

public void putXY(int x,
                  int y,
                  int z,
                  byte[][] buffer)
Put an array into the imageware at the position (x,y,z) in XY axis. No check are performed if the array is outside of the imageware.

Specified by:
putXY in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - byte 2D array to put into the imageware

putXY

public void putXY(int x,
                  int y,
                  int z,
                  short[][] buffer)
Put an array into the imageware at the position (x,y,z) in XY axis. No check are performed if the array is outside of the imageware.

Specified by:
putXY in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - short 2D array to put into the imageware

putXY

public void putXY(int x,
                  int y,
                  int z,
                  float[][] buffer)
Put an array into the imageware at the position (x,y,z) in XY axis. No check are performed if the array is outside of the imageware.

Specified by:
putXY in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - float 2D array to put into the imageware

putXY

public void putXY(int x,
                  int y,
                  int z,
                  double[][] buffer)
Put an array into the imageware at the position (x,y,z) in XY axis. No check are performed if the array is outside of the imageware.

Specified by:
putXY in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - double 2D array to put into the imageware

putXZ

public void putXZ(int x,
                  int y,
                  int z,
                  byte[][] buffer)
Put an array into the imageware at the position (x,y,z) in XZ axis. No check are performed if the array is outside of the imageware.

Specified by:
putXZ in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - byte 2D array to put into the imageware

putXZ

public void putXZ(int x,
                  int y,
                  int z,
                  short[][] buffer)
Put an array into the imageware at the position (x,y,z) in XZ axis. No check are performed if the array is outside of the imageware.

Specified by:
putXZ in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - short 2D array to put into the imageware

putXZ

public void putXZ(int x,
                  int y,
                  int z,
                  float[][] buffer)
Put an array into the imageware at the position (x,y,z) in XZ axis. No check are performed if the array is outside of the imageware.

Specified by:
putXZ in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - float 2D array to put into the imageware

putXZ

public void putXZ(int x,
                  int y,
                  int z,
                  double[][] buffer)
Put an array into the imageware at the position (x,y,z) in XZ axis. No check are performed if the array is outside of the imageware.

Specified by:
putXZ in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - double 2D array to put into the imageware

putYZ

public void putYZ(int x,
                  int y,
                  int z,
                  byte[][] buffer)
Put an array into the imageware at the position (x,y,z) in YZ axis. No check are performed if the array is outside of the imageware.

Specified by:
putYZ in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - byte 2D array to put into the imageware

putYZ

public void putYZ(int x,
                  int y,
                  int z,
                  short[][] buffer)
Put an array into the imageware at the position (x,y,z) in YZ axis. No check are performed if the array is outside of the imageware.

Specified by:
putYZ in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - short 2D array to put into the imageware

putYZ

public void putYZ(int x,
                  int y,
                  int z,
                  float[][] buffer)
Put an array into the imageware at the position (x,y,z) in YZ axis. No check are performed if the array is outside of the imageware.

Specified by:
putYZ in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - float 2D array to put into the imageware

putYZ

public void putYZ(int x,
                  int y,
                  int z,
                  double[][] buffer)
Put an array into the imageware at the position (x,y,z) in YZ axis. No check are performed if the array is outside of the imageware.

Specified by:
putYZ in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - double 2D array to put into the imageware

putXYZ

public void putXYZ(int x,
                   int y,
                   int z,
                   byte[][][] buffer)
Put an array into the imageware at the position (x,y,z) in XYZ axis. No check are performed if the array is outside of the imageware.

Specified by:
putXYZ in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - byte 3D array to put into the imageware

putXYZ

public void putXYZ(int x,
                   int y,
                   int z,
                   short[][][] buffer)
Put an array into the imageware at the position (x,y,z) in XYZ axis. No check are performed if the array is outside of the imageware.

Specified by:
putXYZ in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - short 3D array to put into the imageware

putXYZ

public void putXYZ(int x,
                   int y,
                   int z,
                   float[][][] buffer)
Put an array into the imageware at the position (x,y,z) in XYZ axis. No check are performed if the array is outside of the imageware.

Specified by:
putXYZ in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - float 3D array to put into the imageware

putXYZ

public void putXYZ(int x,
                   int y,
                   int z,
                   double[][][] buffer)
Put an array into the imageware at the position (x,y,z) in XYZ axis. No check are performed if the array is outside of the imageware.

Specified by:
putXYZ in interface Buffer
Parameters:
x - X starting position to put the buffer
y - Y starting position to put the buffer
z - Z starting position to put the buffer
buffer - double 3D array to put into the imageware

getX

public void getX(int x,
                 int y,
                 int z,
                 ImageWare buffer)
Get an array from the imageware at the position (x,y,z) in X axis. No check are performed if the array is outside of the imageware.

Specified by:
getX in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - ImageWare object to get into the imageware

getY

public void getY(int x,
                 int y,
                 int z,
                 ImageWare buffer)
Get an array from the imageware at the position (x,y,z) in Y axis. No check are performed if the array is outside of the imageware.

Specified by:
getY in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - ImageWare object to get into the imageware

getZ

public void getZ(int x,
                 int y,
                 int z,
                 ImageWare buffer)
Get an array from the imageware at the position (x,y,z) in Z axis. No check are performed if the array is outside of the imageware.

Specified by:
getZ in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - ImageWare object to get into the imageware

getXY

public void getXY(int x,
                  int y,
                  int z,
                  ImageWare buffer)
get an array into the imageware at the position (x,y,z) in XY axis. No check are performed if the array is outside of the imageware.

Specified by:
getXY in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - ImageWare object to get into the imageware

getXZ

public void getXZ(int x,
                  int y,
                  int z,
                  ImageWare buffer)
Get an array from the imageware at the position (x,y,z) in XZ axis. No check are performed if the array is outside of the imageware.

Specified by:
getXZ in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - ImageWare object to get into the imageware

getYZ

public void getYZ(int x,
                  int y,
                  int z,
                  ImageWare buffer)
Get an array from the imageware at the position (x,y,z) in YZ axis. No check are performed if the array is outside of the imageware.

Specified by:
getYZ in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - ImageWare object to get into the datase

getXYZ

public void getXYZ(int x,
                   int y,
                   int z,
                   ImageWare buffer)
Get an array from the imageware at the position (x,y,z) in XYZ axis. No check are performed if the array is outside of the imageware.

Specified by:
getXYZ in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - ImageWare object to get into the imageware

getX

public void getX(int x,
                 int y,
                 int z,
                 byte[] buffer)
Get an array from the imageware at the position (x,y,z) in X axis. No check are performed if the array is outside of the imageware.

Specified by:
getX in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - byte 1D array to get into the imageware

getX

public void getX(int x,
                 int y,
                 int z,
                 short[] buffer)
Get an array from the imageware at the position (x,y,z) in X axis. No check are performed if the array is outside of the imageware.

Specified by:
getX in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - short 1D array to get into the imageware

getX

public void getX(int x,
                 int y,
                 int z,
                 float[] buffer)
Get an array from the imageware at the position (x,y,z) in X axis. No check are performed if the array is outside of the imageware.

Specified by:
getX in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - float 1D array to get into the imageware

getX

public void getX(int x,
                 int y,
                 int z,
                 double[] buffer)
Get an array from the imageware at the position (x,y,z) in X axis. No check are performed if the array is outside of the imageware.

Specified by:
getX in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - double 1D array to get into the imageware

getY

public void getY(int x,
                 int y,
                 int z,
                 byte[] buffer)
Get an array from the imageware at the position (x,y,z) in Y axis. No check are performed if the array is outside of the imageware.

Specified by:
getY in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - byte 1D array to get into the imageware

getY

public void getY(int x,
                 int y,
                 int z,
                 short[] buffer)
Get an array from the imageware at the position (x,y,z) in Y axis. No check are performed if the array is outside of the imageware.

Specified by:
getY in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - short 1D array to get into the imageware

getY

public void getY(int x,
                 int y,
                 int z,
                 float[] buffer)
Get an array from the imageware at the position (x,y,z) in Y axis. No check are performed if the array is outside of the imageware.

Specified by:
getY in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - float 1D array to get into the imageware

getY

public void getY(int x,
                 int y,
                 int z,
                 double[] buffer)
Get an array from the imageware at the position (x,y,z) in Y axis. No check are performed if the array is outside of the imageware.

Specified by:
getY in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - double 1D array to get into the imageware

getZ

public void getZ(int x,
                 int y,
                 int z,
                 byte[] buffer)
Get an array from the imageware at the position (x,y,z) in Z axis. No check are performed if the array is outside of the imageware.

Specified by:
getZ in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - byte 1D array to get into the imageware

getZ

public void getZ(int x,
                 int y,
                 int z,
                 short[] buffer)
Get an array from the imageware at the position (x,y,z) in Z axis. No check are performed if the array is outside of the imageware.

Specified by:
getZ in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - short 1D array to get into the imageware

getZ

public void getZ(int x,
                 int y,
                 int z,
                 float[] buffer)
Get an array from the imageware at the position (x,y,z) in Z axis. No check are performed if the array is outside of the imageware.

Specified by:
getZ in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - float 1D array to get into the imageware

getZ

public void getZ(int x,
                 int y,
                 int z,
                 double[] buffer)
Get an array from the imageware at the position (x,y,z) in Z axis. No check are performed if the array is outside of the imageware.

Specified by:
getZ in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - double 1D array to get into the imageware

getXY

public void getXY(int x,
                  int y,
                  int z,
                  byte[][] buffer)
get an array into the imageware at the position (x,y,z) in XY axis. No check are performed if the array is outside of the imageware.

Specified by:
getXY in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - byte 2D array to get into the imageware

getXY

public void getXY(int x,
                  int y,
                  int z,
                  short[][] buffer)
get an array into the imageware at the position (x,y,z) in XY axis. No check are performed if the array is outside of the imageware.

Specified by:
getXY in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - short 2D array to get into the imageware

getXY

public void getXY(int x,
                  int y,
                  int z,
                  float[][] buffer)
get an array into the imageware at the position (x,y,z) in XY axis. No check are performed if the array is outside of the imageware.

Specified by:
getXY in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - float 2D array to get into the imageware

getXY

public void getXY(int x,
                  int y,
                  int z,
                  double[][] buffer)
get an array into the imageware at the position (x,y,z) in XY axis. No check are performed if the array is outside of the imageware.

Specified by:
getXY in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - double 2D array to get into the imageware

getXZ

public void getXZ(int x,
                  int y,
                  int z,
                  byte[][] buffer)
Get an array from the imageware at the position (x,y,z) in XZ axis. No check are performed if the array is outside of the imageware.

Specified by:
getXZ in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - byte 2D array to get into the imageware

getXZ

public void getXZ(int x,
                  int y,
                  int z,
                  short[][] buffer)
Get an array from the imageware at the position (x,y,z) in XZ axis. No check are performed if the array is outside of the imageware.

Specified by:
getXZ in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - short 2D array to get into the imageware

getXZ

public void getXZ(int x,
                  int y,
                  int z,
                  float[][] buffer)
Get an array from the imageware at the position (x,y,z) in XZ axis. No check are performed if the array is outside of the imageware.

Specified by:
getXZ in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - float 2D array to get into the imageware

getXZ

public void getXZ(int x,
                  int y,
                  int z,
                  double[][] buffer)
Get an array from the imageware at the position (x,y,z) in XZ axis. No check are performed if the array is outside of the imageware.

Specified by:
getXZ in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - double 2D array to get into the imageware

getYZ

public void getYZ(int x,
                  int y,
                  int z,
                  byte[][] buffer)
Get an array from the imageware at the position (x,y,z) in YZ axis. No check are performed if the array is outside of the imageware.

Specified by:
getYZ in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - byte 2D array to get into the datase

getYZ

public void getYZ(int x,
                  int y,
                  int z,
                  short[][] buffer)
Get an array from the imageware at the position (x,y,z) in YZ axis. No check are performed if the array is outside of the imageware.

Specified by:
getYZ in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - short 2D array to get into the datase

getYZ

public void getYZ(int x,
                  int y,
                  int z,
                  float[][] buffer)
Get an array from the imageware at the position (x,y,z) in YZ axis. No check are performed if the array is outside of the imageware.

Specified by:
getYZ in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - float 2D array to get into the datase

getYZ

public void getYZ(int x,
                  int y,
                  int z,
                  double[][] buffer)
Get an array from the imageware at the position (x,y,z) in YZ axis. No check are performed if the array is outside of the imageware.

Specified by:
getYZ in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - double 2D array to get into the datase

getXYZ

public void getXYZ(int x,
                   int y,
                   int z,
                   byte[][][] buffer)
Get an array from the imageware at the position (x,y,z) in XYZ axis. No check are performed if the array is outside of the imageware.

Specified by:
getXYZ in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - byte 3D array to get into the imageware

getXYZ

public void getXYZ(int x,
                   int y,
                   int z,
                   short[][][] buffer)
Get an array from the imageware at the position (x,y,z) in XYZ axis. No check are performed if the array is outside of the imageware.

Specified by:
getXYZ in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - short 3D array to get into the imageware

getXYZ

public void getXYZ(int x,
                   int y,
                   int z,
                   float[][][] buffer)
Get an array from the imageware at the position (x,y,z) in XYZ axis. No check are performed if the array is outside of the imageware.

Specified by:
getXYZ in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - float 3D array to get into the imageware

getXYZ

public void getXYZ(int x,
                   int y,
                   int z,
                   double[][][] buffer)
Get an array from the imageware at the position (x,y,z) in XYZ axis. No check are performed if the array is outside of the imageware.

Specified by:
getXYZ in interface Buffer
Parameters:
x - X starting position to get the buffer
y - Y starting position to get the buffer
z - Z starting position to get the buffer
buffer - double 3D array to get into the imageware

throw_constructor

protected void throw_constructor()
Prepare a complete error message from the errors coming the constructors.


throw_constructor

protected void throw_constructor(int nx,
                                 int ny,
                                 int nz)
Prepare a complete error message from the errors coming the constructors.


throw_get

protected void throw_get(java.lang.String direction,
                         java.lang.String border,
                         java.lang.Object buffer,
                         int x,
                         int y,
                         int z)
Prepare a complete error message from the errors coming the get routines.


throw_put

protected void throw_put(java.lang.String direction,
                         java.lang.String border,
                         java.lang.Object buffer,
                         int x,
                         int y,
                         int z)
Prepare a complete error message from the errors coming the put routines.


getVolume

public java.lang.Object[] getVolume()
Get a reference of the whole volume data.

Specified by:
getVolume in interface Buffer
Returns:
a reference of the data of this imageware

getSliceByte

public byte[] getSliceByte(int z)
Get a specific slice, fast and direct access, but only for byte imageware.

Specified by:
getSliceByte in interface Buffer
Parameters:
z - number of the requested slice
Returns:
a reference of the data of one slice of this imageware

getSliceShort

public short[] getSliceShort(int z)
Get a specific slice, fast and direct access, but only for short imageware.

Specified by:
getSliceShort in interface Buffer
Parameters:
z - number of the requested slice
Returns:
a reference of the data of one slice of this imageware

getSliceFloat

public float[] getSliceFloat(int z)
Get a specific slice, fast and direct access, but only for float imageware.

Specified by:
getSliceFloat in interface Buffer
Parameters:
z - number of the requested slice
Returns:
a reference of the data of one slice of this imageware

getSliceDouble

public double[] getSliceDouble(int z)
Get a specific slice, fast and direct access, but only for double imageware.

Specified by:
getSliceDouble in interface Buffer
Parameters:
z - number of the requested slice
Returns:
a reference of the data of one slice of this imageware